

fp_new = open("night.txt",mode='a',encoding='utf-8') 
for i in range(0,18):
    num = i*25
    fp = open("night"+str(num)+".txt",mode='r',encoding='utf-8') 
    x = fp.read()
    fp_new.write(x)
    fp.close()
fp_new.close()